package com.aventura.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author chenjian
 */
@Component
@ConfigurationProperties(value = "aventura.generator")
public class GeneratorConfigProperties {

    /**
     * Database default 'mysql' [mysql、oracle、sqlserver、postgresql、mongodb]
     */
    private String database = "mysql";

    /**
     * main path default 'com.aventura'
     */
    private String mainPath = "com.aventura";

    /**
     * Base package default 'com.aventura';
     */
    private String packages = "com.aventura";

    /**
     * Module name default 'module'
     */
    private String moduleName = "module";

    /**
     * Author default 'aventura'
     */
    private String author = "Aventura";

    /**
     * Email default chenj@aventura.net.cn
     */
    private String email = "chenj@aventura.net.cn";

    /**
     * Table prefix default 'tb_'
     */
    private String tablePrefix = "tb_";

    public String getMainPath() {
        return mainPath;
    }

    public void setMainPath(String mainPath) {
        this.mainPath = mainPath;
    }

    public String getPackages() {
        return packages;
    }

    public void setPackages(String packages) {
        this.packages = packages;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTablePrefix() {
        return tablePrefix;
    }

    public void setTablePrefix(String tablePrefix) {
        this.tablePrefix = tablePrefix;
    }
}
